<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Google 地图 JavaScript API 示例: 简单图标</title>
    <script src="maps" type="text/javascript"></script>
	<script src="main.js" type="text/javascript"></script>
    <!--<style type="text/css">@media print{.gmnoprint{display:none}}@media screen{.gmnoscreen{display:none}}</style>-->
    <script type="text/javascript">

    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(23.13275,113.33317), 18);
        map.addControl(new GSmallMapControl());

        // 创建“微型”标记图标
        var blueIcon = new GIcon(G_DEFAULT_ICON);
		
		//定义图标大小 
		blueIcon.iconSize=new GSize(57, 70); 
        blueIcon.image = "blank.png";
		
		    // 设置 GMarkerOptions 对象
		    markerOptions = { icon:blueIcon };

        // 在位置向地图中添加标记
        var bounds = map.getBounds();
        var southWest = bounds.getSouthWest();
        var northEast = bounds.getNorthEast();
        var lngSpan = northEast.lng() - southWest.lng();
        var latSpan = northEast.lat() - southWest.lat();
      
          var latlng = new GLatLng(23.13275,113.33317);
          map.addOverlay(new GMarker(latlng, markerOptions));
      
      }
    }

    </script>
  <script src="vp" charset="UTF-8" type="text/javascript"></script>
  <script src="mod_dragmod_ctrapi.js" charset="UTF-8" type="text/javascript"></script>
  </head>
  
  
  <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px; position: relative; background-color: rgb(229, 227, 223);"></div>
  

</body></html>